package com.ahs.controller;


import com.ahs.api.DogApi;
import com.ahs.model.DogSaveModel;
import com.ahs.service.DogService;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author riven zhang
 * @since 2021-05-18
 */
@RestController
public class DogController implements DogApi {

    private final DogService service;

    public DogController(DogService service) {
        this.service = service;
    }

    @Override
    public boolean save(DogSaveModel model) {
        System.out.println("model = " + model);


        return true;
    }
}

